<template>
  <div class="formChild">
    <p class="subTitle">{{source.LBL}}</p>
    <div class="cont">
      <p class="desc">{{source.DESC}}</p>
      <div class="formItems">
        <el-input placeholder="请输入内容" suffix-icon="el-icon-arrow-down" v-model="selected"></el-input>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "formSelect",
  data() {
    return {};
  },
  props: {
    source: {
      type: Object,
      default() {
        return {};
      }
    }
  },
  computed: {
    selected() {
      if (this.source.OPTIONS) {
        let opts = this.source.OPTIONS;
        for (let i = 0; i < opts.length; i++) {
          if (opts[i].CHKED === "1") {
            return opts[i].VAL;
          }
        }
      }
    }
  }
};
</script>
<style lang="scss" scoped src="./com.scss"></style>